<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2024-01-23
  Time: 15:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        /* 下拉按钮样式 */
        .dropbtn {
            background-color: #4CAF50;
            color: white;
            padding: 10px;
            font-size: 16px;
            border: none;
        }

        /* 下拉框内容样式(隐藏) */
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            min-width: 160px;
            z-index: 1;
            overflow: auto;
            max-height: 200px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            border-radius: 5px;
            padding: 5px;
        }

        /* 下拉框内容链接样式 */
        .dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
        }

        /* 当鼠标悬停在下拉按钮上时显示下拉框内容 */
        .dropdown:hover .dropdown-content {
            display: block;
        }
        .dropdown{
            width: 100px;
            height: 20px;
            border: 1px #000000 solid;
        }
    </style>
</head>
<body>
<div class="dropdown">
    <button class="dropbtn">下拉框</button>
    <div class="dropdown-content">
        <a href="#">链接1</a>
        <a href="#">链接2</a>
        <a href="#">链接3</a>
    </div>
</div>
</body>
</html>
